//
//  NSString+ URL.m
//  GOGOTravel
//
//  Created by dllo on 16/2/26.
//  Copyright © 2016年 果果. All rights reserved.
//

#import "NSString+ URL.h"

@implementation NSString__URL

- (NSString *)URLEncodedString{
    NSString *encodedString = (NSString *)
    CFURLCreateStringByAddingPercentEscapes(kCFAllocatorDefault,
                                            (CFStringRef)self,
                                            (CFStringRef)@"!$&'()*+,-./:;=?@_~%#[]",
                                            NULL,
                                            kCFStringEncodingUTF8);
    
    return encodedString;
}

@end
